<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>STORE DATA</title>
</head>

<body>
	VALUE2:
	<div id="setdiv"></div>
	<!-- <form action="test1.php" method="POST" onsubmit="sessvars.KEY = document.getElementById('dataN').value"> -->
	<form action="test1.php" method="POST" onsubmit="window.name = document.getElementById('dataN').value">
		<input type="text" value="" id="dataN" />
		<input type="submit" value="save" />
	</form>
	<a href="test.php">aaa</a>
</body>
</html>
<script type="text/javascript">
	// document.getElementById('setdiv').innerHTML = sessvars.KEY;
	document.getElementById('setdiv').innerHTML = window.name;
	document.getElementById('dataN').focus();
</script>
